package day9;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * @author oldliu
 * @since 1.0
 */
public class FileSenderServer {
    //你告诉我想哪张图片，我传给你
    public static void main(String[] args) {
        ServerSocket st = null;
        try {
            st = new ServerSocket(8888);
            System.out.println("listen on 8888端口");
            while (true) {
                final Socket s = st.accept();
            //    new FileSenderThread(s).start();
                new FileSenderThread2(s).start();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
